/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hojadetrabajo7;


class WordSetFactory {

    
    public static WordSet generateSet(int tipo) {
        if (tipo == 1) {
            return new SimpleSet();
        } 
        if (tipo == 2) {
            return new Wrapper();
        }      
        
        if (tipo == 3) {
            return new TreeMapSet();
        } 
        else 
        {
            return null;
        }
    }
}